
<h2 align="center">{[if $result.customer_x->fullname neq '']}
{[$result.customer_x->fullname]}<br/>
{[else]}
景荣精密产品（深圳）有限公司<br/>
{[/if]}
进货单</h2>

<div class="view_1">
<table>
	<tr>
		<td width="60%" valign="top">
		<fieldset style="height: 60px;">
		<h3>供应商：{[$result.supplier_x->fullname]}</h3>
		地址：{[$result.supplier_x->address]}<br />
		电话：{[$result.supplier_x->tel]} 传真：{[$result.supplier_x->fax]}<br />
		{[$result.supplier_x->contact]} 手机：{[$result.supplier_x->mobile]} 电邮：{[$result.supplier_x->email]}</fieldset>
		</td>
		<td width="1%"></td>
		<td width="39%" valign="top">
		<fieldset style="height: 60px">订单日期：{[$result.createtime|date_format:'%Y-%m-%d']}<br />		
		交货日期：{[$result.indate]}<br />
		订单金额：{[$result.currency]} {[$result.total|money]}<br />
		付款方式：{[$result.currency_t]} {[$result.type]} {[if $result.tax ne 0]}税率：{[$result.tax|string_float]}%{[else]}不含税{[/if]}
		</fieldset>
		</td>
	</tr>
</table>
</div>

<div class="view_3">
<table>
	<tr align="center">
		<td>序号</td>
		<td>名称</td>
		<td>规格</td>

		<td>单位</td>
		<td>数量</td>
		<td>单价</td>
		<td>小计</td>
		<td>产品</td>

		<td>备注</td>	
	</tr>
	{[foreach name=outer key=key item=item from=$record_in]} 
	{[assign var="no" value="`$key+$pager->from+1`"]} 
	{[assign	var="totals" value="`$totals+$item.total`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.name]}</td>
		<td>{[$item.standard]}</td>

		<td>{[$item.unit2]}</td>
		<td>{[$item.amount2|string_float]}</td>
		<td>{[$item.price2]}</td>
		<td>{[$item.total|money]}</td>
		<td>{[$item.mold_t]}</td>

		<td id="item_content_{[$no]}">{[$item.content|truncate:30]}</td>
	</tr>
	{[/foreach]}
	{[foreach name=outer key=key item=item from=$blank]}
	<tr align="center">
		<td>&nbsp;</td>
		<td></td>
		<td></td>
		
		<td></td>
		<td></td>
		<td></td>
		
		<td></td>
		<td></td>
		<td></td>
	</tr>
	{[/foreach]}	
	<tr>
		<td colspan="6" align="center">总计（大写）{[$result.currency_t]} {[$result.total|rmb]}</td>
		<td align="center">{[$result.total|money]}</td>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td colspan="9" valign="top" style="height: 60px; font-size:12px;">备注：<br/>
		<br/>
	交货地点：{[$result.address]}<br/>
	{[$result.content|nl2br]}</td>	
	</tr>
	<tr>
		<td colspan="9" style="font-size:12px;">说明：
		<ol>
			<li>此单为采购物品验收后合格品入库单据。</li>
			<li>进货单经仓库文员、品管、仓管、仓库主管签核后交采购、财务对账。</li>
			<li>进货单一式三联，仓库、采购、财务各一联。	</li>
			<li>原则上一张送货单打印对应一张进货单，仓库分发各相关单位时，进货单必须附上供应商之送货单。</li>
		</ol>				
		</td>
	</tr>
</table>
</div>

<div class="view_3">
<table>
	<tr height="50px">
		<td width="25%">审核：</td>
		<td width="25%">仓管：</td>
		<td width="25%">品管：</td>
		<td width="25%">制单：</td>
	</tr>
</table>
</div>

<link type="text/css" href="inc/print.css?r={[$smarty.now]}" rel="stylesheet">
<script type="text/javascript" src="js/material/in/purchase/view.js?r={[$smarty.now]}"></script>
